﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Pages/MasterPage.master" AutoEventWireup="true" CodeFile="CustomerEdit.aspx.cs" Inherits="Admin_Pages_CustomerEdit" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style2
        {
            width: 214px;
        }
        .style3
        {
            width: 119px;
        }
    </style>
    <title>Management System</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="wraptitle">
    <h1>Edit Customer</h1>
</div>
<div class="wrapcontent">
    <center>
    <fieldset style="width:550px;"><legend style="color:Gray">Change Active</legend>
    <table style="width: 550px;">
        
        <tr>
            <td align="left" class="style3">
                Username:
            </td>
            <td align="left" class="style2">
                <asp:Label ID="lblUser" runat="server" Text=""></asp:Label>
            </td>
            <td align="left">
                
            </td>
        </tr>
        <tr>
            <td align="left" class="style3">
                Active:
            </td>
            <td align="left" class="style2">
                <asp:CheckBox ID="chkActive" runat="server" />
                
            </td>
            <td align="left">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="left" class="style3">
                
            </td>
            <td align="left" class="style2">
                <asp:Button ID="btnChangeActive" runat="server" Text="Change Active"  
                    CausesValidation="False" onclick="btnChangeActive_Click" />
            </td>
            <td align="left">
                &nbsp;</td>
        </tr>
        </table>
        </fieldset>
        
        <fieldset style="width:550px;"><legend style="color:Gray">Change Password Customer</legend>
        <table style="width: 550px;">
        <tr>
            <td align="left" class="style3">
                Password:
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td align="left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtPass" Display="Dynamic" 
                    ErrorMessage="* Password is not empty"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" class="style3">
                Re-Enter Password:
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="txtRePass" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td align="left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtRePass" Display="Dynamic" 
                    ErrorMessage="* Re-Enter Password is not empty"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtPass" ControlToValidate="txtRePass" Display="Dynamic" 
                    ErrorMessage="* Re-Enter password must the same password"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="left" class="style3">
                
            </td>
            <td align="left" class="style2">
                <asp:Button ID="btnSave" runat="server" Text="Change Pass" onclick="btnSave_Click" />
                <input type="reset" value="Reset" name="reset" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    </fieldset>
    </center>
</div>
</asp:Content>

